package com.apex.crm.exceptions;

/**
 * @author XiaoYang
 * @version 1.0
 * @program: crm
 * @Classname ParamsException
 * @description TODO
 * @date 2021/4/20 18:16
 */

public class ParamsException  extends  RuntimeException{

    private Integer code=300;
    private String msg="参数异常！";

    public ParamsException() {
        super("参数异常！");
    }

    public ParamsException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public ParamsException(Integer code) {
        super("参数异常！");
        this.code = code;
    }

    public ParamsException(Integer code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
